private ["_i","_l","_a"];
_i=0;
_l=list detectlaser;
_a=[];
while {_i<count _l} do {
if (_l select _i isKindOf "LaserTarget")then {
_a=_a+[_l select _i]};_i=_i+1};
_a;
if (true) exitWith {};